#include "main.h"

//发送命令和参数
void send_command(int netFD, sendc_t sc){
    int ret = send(netFD, &(sc.num), sizeof(sc.num), MSG_NOSIGNAL);
    ERROR_CHECK(ret, -1, "send_num_sendCommand.c");

    ret = send(netFD, &(sc.path_size), sizeof(sc.path_size), MSG_NOSIGNAL);
    ERROR_CHECK(ret, -1, "send_pathSize_sendCommand.c");

    ret = send(netFD, sc.path, sc.path_size, MSG_NOSIGNAL);
    ERROR_CHECK(ret, -1, "send_path_sendCommand.c");

}

